<head>
	<!--<link rel="stylesheet" type="text/css" href="/BackEndRecursosHumanos/app/webroot/css/ui-lightness/jquery-ui-1.10.3.custom.min.css">
	<script type="text/javascript" src="/BackEndRecursosHumanos/app/webroot/js/jquery-1.9.1.js"></script>
	<script type="text/javascript" src="/BackEndRecursosHumanos/app/webroot/js/jquery-ui-1.10.3.custom.min.js"></script>
	<script type="text/javascript" src="/BackEndRecursosHumanos/app/webroot/js/jquery-ui-i18n.js"></script>
	<script type="text/javascript" src="/BackEndRecursosHumanos/app/webroot/js/jquery.maskedinput.js" ></script>
	<script src="/BackEndRecursosHumanos/app/webroot/js/jquery.mousewheel.js"></script>
  	<script src="/BackEndRecursosHumanos/app/webroot/js/globalize.js"></script>-->

	
	
</head>
<body >
	<center>

			<div>
				<center>
					<?php echo $this->Form->create("ConfiguracionModulo",array('type' => 'file'));
					?>
				<fieldset class="fieldset_modulo">
					<legend><b>Actualización de la Informacion del Sistema</b></legend>
					<center>
					
					<table >
						<tr>
							<td style="vertical-align: middle; text-align: center">
								<center>
									<b> Elija una Opcion</b>
									<br />
									<br />
								<?php 
									echo $this->Form->input('tipo_opcion',array(
																										'options' => array($arreglo_opciones),
																										'label' => array(
																															'style' => array(
																																				'display:none'
																																			)
																														),
																										'style' => array('width: 50%')
																								   )
													 						 ); 
									echo $this->Form->input('direcciones_pasos_beneficio',array(
																									'type' => 'file',
																									'label' => array(
																														'style' => array(
																																			'display:none;'
																																		)
																																						
																													),
																									'style' => array(
																														'width: 50%'
																													),
																									'accept' => 'application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
																									'onchange' => 'readURL(this);'
																			
																		  						)
																);
									echo $this->Form->input('direcciones_pasos_beneficio_dir', array('type' => 'hidden'));
									?>	
								</center>		 				
							</td>
						</tr>
					</table>
					
					</center>
			
				</fieldset>
				<?php echo $this->Form->end('Guardar');?>
				</center>
			</div>
			<?php
			if ($valor == 2) 
			{
			?>
			<div>
				<fieldset class="fieldset_modulo">
				<legend>Resultado</legend>
				
				<table width="50%">
					<tr>
						<td>
							Cant. Total de Registros
						</td>
						<td>
							<?php echo $cant_buena+$cant_mala?>
						</td>
					</tr>
					<tr>
						<td>
							Cant. de Registros Insertados
						</td>
						<td>
							<?php echo $cant_buena?>
						</td>
					</tr>
					<tr>
						<td>
							Cant. de Registros Invalidos
						</td>
						<td>
							<?php echo $cant_mala?>
						</td>
					</tr>
					<?php
					if ($cant_mala > 0)
					{
					?>
					<tr>
						<td>
							<fieldset>
								<center>
									<legend>Reporte de Errores</legend>
									<table>
										<tr>
											<td style="text-align: center"> 
												<b>Fila</b>
											</td>
											<td style="text-align: center"> 
												<b>Mensaje</b>
											</td>
										</tr>
										<?php
											foreach ($malas as $mala)
											{
										?>
										<tr>
											<td style="text-align: center"> 
												
													<?php
														echo $mala['Columna'];
													?>								
											</td>
											<td style="text-align: center"> 
													<?php
														echo $mala['Mensaje'];
													?>								
											</td>
										</tr>
										<?php	
											}
										?>
										
									</table>
								</center>
							</fieldset>
						</td>
					</tr>
					<?php 
					}
					?>
				</table>
			
			
				</fieldset>
			</div>
			<?php
			}
			?>
	</center>
</body>